import 'package:live_music/AppPage.dart';
import 'package:live_music/pages/detail/moment_detail.dart';
import 'package:live_music/pages/topic/topic_detail.dart';
import 'package:live_music/pages/video/video_and_user_page.dart';
import 'app_routes.dart';
import 'package:get/get.dart';

class AppRouter {
  // 初始路由
  static const String initialRoute = AppRoutes.app;
  // 404
  static final GetPage unknownRoute = GetPage(
    name: AppRoutes.notfound,
    page: () => AppPage(),
  );
  // 路由页面
  static final List<GetPage<dynamic>> getPages = [
    GetPage(
      name: AppRoutes.app,
      page: () => AppPage(),
    ),
    GetPage(
      name: AppRoutes.momentDetail,
      page: () => MomentDetailPage(),
    ),
    GetPage(
      name: AppRoutes.topicDetail,
      page: () => TopicDetailPage(),
    ),
    GetPage(
      name: AppRoutes.videoInfo,
      page: () => VideoAndUserPage(),
    )
  ];
}
